<%-- 
    Document   : entryProductList
    Created on : 08/04/2009, 08:56:54 AM
    Author     : Joel Chuca
--%>

<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="entryProductList.title"/></title>
    <meta name="heading" content="<fmt:message key='entryProductList.heading'/>"/>
    <meta name="menu" content="MaterialMenu"/>
</head>


<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/editEntryProduct.html"/>'"
           value="<fmt:message key="button.add"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="entryProducts" value="entryProducts" scope="request"/>
<br><br>
<display:table name="entryProducts"  class="table" id="entryProductForm" export="true" requestURI="" pagesize="25">
    <display:column sortable="true" href="editEntryProduct.html" paramId="id" paramProperty="id">
        <img src="<c:url value="/images/edit.png" />" alt="Edit" />
    </display:column>
    <display:column property="date" sortable="true" titleKey="entryProduct.date"/>
    <display:column property="supplier.name" sortable="true" titleKey="entryProduct.supplier"/>
    <display:column property="totalPrice" sortable="true" titleKey="entryProduct.totalPrice"/>
    <display:column property="coin.name" sortable="true" titleKey="entryProduct.coin"/>

    <display:column href="entryProductDetails.html" paramId="idEntryProduct" paramProperty="id">
        <fmt:message key="entryProductDetails.edit"/>
    </display:column>

    <display:setProperty name="paging.banner.item_name" value="entryProduct detail"/>
    <display:setProperty name="paging.banner.items_name" value="entryProduct details"/>

    <display:setProperty name="export.excel.filename" value="EntryProductDetail List.xls"/>
    <display:setProperty name="export.csv.filename" value="EntryProductDetail List.csv"/>
    <display:setProperty name="export.pdf.filename" value="EntryProductDetail List.pdf"/>
    <display:setProperty name="paging.banner.some_items_found" value=""/>
    <display:setProperty name="paging.banner.all_items_found" value=""/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    //highlightTableRows("entryProductDetailForm");
</script>